package com.yz.jvm.javamem;

public class Example10 {
    int a=0, b=0;

    public void method1() {
        int r2 = a;
        b = 1;
    }

    public void method2() {
        int r1 = b;
        a = 2;
    }
}
